// NodeSpace.h
// think more..
// by Mina Jung @ syracuse university
// April 2010


#import <random.h>
#import "Data.h"

#import <simtools.h>
#import <misc.h>




@implementation Data

- createEnd 
{
  [super createEnd];

  data = 0;
  
  return self;
}

- putRange:(int)t Min: (int)min Max: (int)max
{
  type = t;
  bot = min;
  top = max;

  return self;
}

- setDataValue:(int)val
{
  data = val;

  return self;
}

- (int)getDataValue
{
  return (int)data;
}


- (int)getEnvValue
{
  int val = 0;               // 0 <-- normal, 1 <-- data  abnormal


//  if(data < bot || data > top)
    val = data;

  return val;
}

- (int)getDataType
{
  return type;
}


@end



